package main

import (
	"example/helloworld/api"
	"example/helloworld/internal/service"
	"github.com/gin-gonic/gin"
)

func main() {
	router := gin.New()

	svc := service.NewHelloWorldService()
	handler := api.NewHelloWorldGinHandler(svc)

	handler.RegisterRouter(router)

	err := router.Run(":8080")
	if err != nil {
		panic(err)
	}
}
